﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Sim.Admin.AdminPermissionRecord
{
    /// <summary>
    /// 员工权限记录
    /// </summary>
    public class AdminPermissionRecordRequestDto
    {
        /// <summary>
        /// 员工角色Id
        /// </summary>
        [Display(Name ="员工角色Id")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        public long StaffOrganizationMappingRecordId { get; set; }
        /// <summary>
        /// 员工Id（账号）
        /// </summary>
        [Display(Name ="员工Id")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        public long AdminId { get; set; }
        /// <summary>
        /// 操作权限(示例：Accounting.Insert,Accounting.Update,Accounting.Delete,Accounting.Select)
        /// </summary>
        [Display(Name ="操作权限")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        public string OperationPermission { get; set; }
    }
}
